import Layout from '@/layout'

const baobanRouter = {
  path: '/baoban',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Baoban',
  meta: {
    title: '报班子系统',
    icon: 'component',
    roles: ['报班']
  },
  children: [
    {
      path: 'baoban',
      component: () => import('@/views/baoban/baoban/baoban'),
      name: 'Baoban',
      meta: { title: '报班', noCache: true }
    },
    {
      path: 'jiaban',
      component: () => import('@/views/baoban/jiaban/jiaban'),
      name: 'Jiaban',
      meta: { title: '加班', noCache: true }
    },
    {
      path: 'change',
      component: () => import('@/views/baoban/change/change'),
      name: 'Change',
      meta: { title: '修改发车时间', noCache: true }
    },
    {
      path: 'chaxun',
      component: () => import('@/views/baoban/chaxun/chaxun'),
      name: 'Chaxun',
      meta: { title: '车辆查询', noCache: true }
    },
    {
      path: 'tingban',
      component: () => import('@/views/baoban/tingban/tingban'),
      name: 'Tingban',
      meta: { title: '停班', noCache: true }
    }
  ]
}

export default baobanRouter
